<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script>

        var arr=[1,2,3,4,5,6,7,8,9,10]
        var sum = 0;
        for(i = 0; i<=arr.length -1; i++){
            sum =sum +arr[i]
        }
        console.log(sum);


    </script>
</head>
<body>

</body>
</html>